package tk.mybatis.springboot.service.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tk.mybatis.springboot.mapper.InterceptRuleMapper;
import tk.mybatis.springboot.model.InterceptRule;
import tk.mybatis.springboot.service.InterceptRuleService;

@Service
public class InterceptRuleServiceImpl implements InterceptRuleService{
	@Resource
	InterceptRuleMapper interceptRuleMapper;
	
	
	@Override
	public int insert(InterceptRule rule) {
		// TODO Auto-generated method stub
		return interceptRuleMapper.insert(rule);
	}

	@Override
	public InterceptRule seletByIp(String ip) {
		// TODO Auto-generated method stub
		return interceptRuleMapper.seletByIp(ip);
	}

	@Override
	public int deltel(String ip) {
		// TODO Auto-generated method stub
		return interceptRuleMapper.deltel(ip);
	}

}
